<div class="bgtopic">
    <div class="topic_title"> Menu</div>
</div>
<ul id="menuV2">
    <?php
    $session = new CHttpSession;
    $session->open();

    $userID = $session['user_salesmart'][1];
    if ($userID > 98) {
        ?>
        <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/Chuong-trinh-game-show"><img src="<?php echo Yii::app()->request->baseUrl; ?>/icon/program_files_folder.png"/>Chương trình</a>
            <ul class="sub">
                <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/them-chuong-trinh">Thêm chương trình</a></li>
                <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/cai-dat-qua">Cài đặt quà</a></li>
                <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/so-nguoi-tham-gia">Số người đã tham gia</a></li>
            </ul>
        </li>
    <?php } ?>
    <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/thong-tin-ca-nhan"><img src="<?php echo Yii::app()->request->baseUrl; ?>/icon/user_business_info_32.png"/>Thông tin cá nhân</a>

    </li>
    <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/doi-mat-khau"><img src="<?php echo Yii::app()->request->baseUrl; ?>/icon/comment_user_add_32.png"/>Đổi mật khẩu</a>

    </li>
    <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/mua-quang-cao"><img src="<?php echo Yii::app()->request->baseUrl; ?>/icon/coins.png"/>Mua quảng cáo</a>

    </li>
    <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/lich-su-giao-dich"><img src="<?php echo Yii::app()->request->baseUrl; ?>/icon/drive_product_red_usb.png"/>Lịch sử giao dịch</a>

    </li>


    <li><a href="<?php echo Yii::app()->request->baseUrl; ?>"><img src="<?php echo Yii::app()->request->baseUrl; ?>/icon/database_search_32.png"/>Quản lý gian hàng</a>
        <ul class="sub">
            <li><a href="<?php echo Yii::app()->request->baseUrl . '/danh-sach-shop'; ?>">Quản lý Gian hàng</a>
                <ul class="sub">
                    <li><a href="<?php echo Yii::app()->request->baseUrl . '/them-shop'; ?>">Tạo gian hàng</a></li>

                </ul>
            </li>
            <li><a href="<?php echo Yii::app()->request->baseUrl . '/gian-hang-menu'; ?>">Quản lý Menu</a>
                <ul class="sub">
                    <li><a href="<?php echo Yii::app()->request->baseUrl . '/them-menu'; ?>">Tạo menu</a></li>

                </ul>
            </li>
            <li><a href="<?php echo Yii::app()->request->baseUrl . '/danh-sach-city'; ?>">Quản lý Khu vực</a></li>
            <li><a href="<?php echo Yii::app()->request->baseUrl . '/gian-hang-danh-muc'; ?>">Quản lý Danh mục</a>
                <ul class="sub">
                    <li><a href="<?php echo Yii::app()->request->baseUrl . '/them-danh-muc'; ?>">Tạo Danh mục</a></li>

                </ul>
            </li>

            <li><a href="<?php echo Yii::app()->request->baseUrl . '/gian-hang-quang-cao'; ?>">Quản lý Quảng cáo</a>
                <ul class="sub">
                   
                    <li><a href="<?php echo Yii::app()->request->baseUrl . '/gian-hang-page'; ?>">Quản lý Bài viết</a>
                        <ul class="sub">
                            <li><a href="<?php echo Yii::app()->request->baseUrl . '/them-page-shop'; ?>">Tạo bài viết</a></li>

                        </ul>
                    </li>
                    <li><a href="<?php echo Yii::app()->request->baseUrl . '/gian-hang-slider'; ?>">Quản lý Slider</a>
                        <ul class="sub">
                            <li><a href="<?php echo Yii::app()->request->baseUrl . '/them-slider-shop'; ?>">Tạo Slider</a></li>

                        </ul>
                    </li>
                    <li><a href="<?php echo Yii::app()->request->baseUrl . '/gian-hang-product'; ?>">Quản lý Sản phẩm</a>
                        <ul class="sub">
                            <li><a href="<?php echo Yii::app()->request->baseUrl . '/them-product-shop'; ?>">Tạo Sản phẩm</a></li>

                        </ul>
                    </li>
                    <li><a href="<?php echo Yii::app()->request->baseUrl . '/gian-hang-quang-cao'; ?>">Quản lý Banner</a>
                        <ul class="sub">
                             <li><a href="<?php echo Yii::app()->request->baseUrl . '/them-baner-shop'; ?>">Tạo Banner</a></li>

                        </ul>
                    </li>
                </ul>


            </li>
        </ul>
    </li>

    <li><a href="<?php echo Yii::app()->request->baseUrl; ?>"><img src="<?php echo Yii::app()->request->baseUrl; ?>/icon/newspaper_add_32.png"/>Đăng tin quảng cáo</a>
        <ul class="sub">
            <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/danh-sach-slider">Quản lý slider</a></li>
            <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/them-slider">Thêm slider</a>   </li>
            <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/danh-sach-san-pham">Quản lý sản phẩm</a></li>
            <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/them-san-pham">Thêm sản phẩm</a></li>
            <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/danh-sach-panel">Quản lý banner</a></li>
            <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/them-panel">Thêm banner</a></li>
            <?php if ($userID > 98) {
                ?>
                <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/danh-sach-page">Quản lý bài viết</a></li>
                <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/them-page">Thêm bài viết</a></li>
            <?php } ?>
        </ul>
    </li>

    <li><a href="<?php echo Yii::app()->request->baseUrl; ?>"><img src="<?php echo Yii::app()->request->baseUrl; ?>/icon/info_button_32.png"/>Hướng dẫn</a>

    </li>
    <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/index.php/thoat-he-thong"><img src="<?php echo Yii::app()->request->baseUrl; ?>/icon/exit.png"/>Thoát</a>

    </li>

</ul>

<?php $this->renderPartial('//site/commercial'); ?>